package com.oyjd.ybx.bean.po;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import org.hibernate.annotations.GenericGenerator;

/**
 * 
 * 商品信息实体
 * 
 * @author <b>欧建东<br/>
 *         Email:oyjd@163.com</b>
 * @version 1.0
 */
@Entity
@Table(name = "T_GOODS_INFO")
public class GoodsInfo implements Serializable {

	/**
	 * 序列号
	 */
	private static final long serialVersionUID = 1423755456150728375L;

	/**
	 * 商品ID
	 */
	@Id
	@GeneratedValue(generator = "system-uuid")
	@GenericGenerator(name = "system-uuid", strategy = "uuid")
	@Column(name = "GOODS_ID", length = 32)
	private String goodsId;

	/**
	 * 年龄段ID
	 */
	@Column(name = "AGE_ID", length = 32)
	private String ageId;

	/**
	 * 分类ID
	 */
	@Column(name = "CLASS_ID", length = 32)
	private String classId;

	/**
	 * 商品名称
	 */
	@Column(name = "GOODS_NAME", length = 100)
	private String goodsName;

	/**
	 * 商品图片
	 */
	@Column(name = "GOODS_PIC", length = 100)
	private String goodsPic;

	/**
	 * 推荐理由
	 */
	@Column(name = "RECOMMEND", length = 2000)
	private String recommend;

	/**
	 * 原始链接
	 */
	@Column(name = "LINK", length = 1000)
	private String link;

	/**
	 * 喜欢数
	 */
	@Column(name = "COUNT_LIKE")
	private int countLike;

	/**
	 * 收藏数
	 */
	@Column(name = "COUNT_FAVORITE")
	private int countFavorite;

	/**
	 * 浏览数
	 */
	@Column(name = "COUNT_LOOK")
	private int countLook;

	/**
	 * 评论数
	 */
	@Column(name = "COUNT_COMMENT")
	private int countComment;

	/**
	 * 创建者：来至用户表账号
	 */
	@Column(name = "CREATOR", length = 32)
	private String creator;

	/**
	 * 创建时间
	 */
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "CREATE_TIME")
	private Date createTime;

	/**
	 * 审核者：来至用户表账号
	 */
	@Column(name = "CHECKOR", length = 32)
	private String checkor;

	/**
	 * 审核时间
	 */
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "CHECK_TIME")
	private Date checkTime;

	/**
	 * 下架者：来至用户表账号
	 */
	@Column(name = "DOWNER", length = 32)
	private String downer;

	/**
	 * 下架时间
	 */
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "DOWN_TIME")
	private Date downTime;

	/**
	 * 状态：0-编辑 1-待审核  2-审核并上架  3-下架 4-驳回
	 */
	@Column(name = "STATUS")
	private int status;

	/**
	 * 排序码
	 */
	@Column(name = "ORDER_KEY")
	private long orderKey;

	public String getGoodsId() {
		return goodsId;
	}

	public void setGoodsId(String goodsId) {
		this.goodsId = goodsId;
	}

	public String getAgeId() {
		return ageId;
	}

	public void setAgeId(String ageId) {
		this.ageId = ageId;
	}

	public String getClassId() {
		return classId;
	}

	public void setClassId(String classId) {
		this.classId = classId;
	}

	public String getGoodsName() {
		return goodsName;
	}

	public void setGoodsName(String goodsName) {
		this.goodsName = goodsName;
	}

	public String getGoodsPic() {
		return goodsPic;
	}

	public void setGoodsPic(String goodsPic) {
		this.goodsPic = goodsPic;
	}

	public String getRecommend() {
		return recommend;
	}

	public void setRecommend(String recommend) {
		this.recommend = recommend;
	}

	public String getLink() {
		return link;
	}

	public void setLink(String link) {
		this.link = link;
	}

	public int getCountLike() {
		return countLike;
	}

	public void setCountLike(int countLike) {
		this.countLike = countLike;
	}

	public int getCountFavorite() {
		return countFavorite;
	}

	public void setCountFavorite(int countFavorite) {
		this.countFavorite = countFavorite;
	}

	public int getCountLook() {
		return countLook;
	}

	public void setCountLook(int countLook) {
		this.countLook = countLook;
	}

	public int getCountComment() {
		return countComment;
	}

	public void setCountComment(int countComment) {
		this.countComment = countComment;
	}

	public String getCreator() {
		return creator;
	}

	public void setCreator(String creator) {
		this.creator = creator;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getCheckor() {
		return checkor;
	}

	public void setCheckor(String checkor) {
		this.checkor = checkor;
	}

	public Date getCheckTime() {
		return checkTime;
	}

	public void setCheckTime(Date checkTime) {
		this.checkTime = checkTime;
	}

	public String getDowner() {
		return downer;
	}

	public void setDowner(String downer) {
		this.downer = downer;
	}

	public Date getDownTime() {
		return downTime;
	}

	public void setDownTime(Date downTime) {
		this.downTime = downTime;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public long getOrderKey() {
		return orderKey;
	}

	public void setOrderKey(long orderKey) {
		this.orderKey = orderKey;
	}

}